package com.robcity.platform.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description
 * @Author zhangsong
 * @Date 2024/8/10
 **/
@Getter
@AllArgsConstructor
public enum GropEnum {
    ONE("0", "A小队"),
    TWO("1", "B小队"),
    THREE("2", "C小队");


    private final String code;
    private final String desc;

    public static GropEnum getByCode(String code) {
        for (GropEnum gropEnum : GropEnum.values()) {
            if (gropEnum.getCode().equals(code)) {
                return gropEnum;
            }
        }
        return null;
    }
}
